<template>
  <div>
    <span>{{lastTestNum + '分，用时' + lastTestTime}}</span>
  </div>
</template>
<script setup>
import {onMounted, ref, watch} from 'vue'
const props = defineProps({ scope: {
    default: ''
  } })
const lastTestNum = ref('')
const lastTestTime = ref('')
const setLastTest = () => {
  lastTestNum.value = props.scope.lastTestNum? props.scope.lastTestNum : 0
  lastTestTime.value = props.scope.lastTestTime? props.scope.lastTestTime : '0秒'
}

onMounted(() => {
  setLastTest()
})
</script>

<style >
.course-name {
  position: relative;
  margin: auto;
  height: 20px;
  color: #409EFF;
  font-size: 14px;
  padding: 0 8px;
  text-align: center;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.course-name-item {
  padding: 0 8px;
  border: 1px solid #D9ECFF;
  border-radius: 2px;
  background-color: #ECF5FF;
}
</style>

